#include "CApp.h"
 
void CApp::OnCleanup() {
	for(int i = 0;i < CEntity::EntityList.size();i++) {
		if(!CEntity::EntityList[i]) continue;
 
		CEntity::EntityList[i]->OnCleanup();
	}
 
	CEntity::EntityList.clear();
    SDL_FreeSurface(Surf_Test);
    SDL_FreeSurface(Surf_Display);
    SDL_Quit();
}